<%@ Page Language="C#" MasterPageFile="gallery.master" AutoEventWireup="true" CodeFile="AddAlbum.aspx.cs"
  Inherits="gallery_addalbum" Title="Add Album" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server">
  <h1>
    Add Album
  </h1>
  <table id="entrySettings">
    <tr>
      <td class="label">
        <%=Resources.labels.album %>
      </td>
      <td>
        <asp:TextBox runat="server" ID="txtTitle" ValidationGroup="Album" TabIndex="10" />
        <asp:CustomValidator runat="Server" ID="valExist" ValidationGroup="new" ControlToValidate="txtTitle"
          ErrorMessage="The album already exist" Display="dynamic" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="Server" ValidationGroup="new"
          ControlToValidate="txtTitle" ErrorMessage="Please enter a valid name" /><br />
        <br />
      </td>
    </tr>
    <tr>
      <td class="label">
        Description</td>
      <td>
        <asp:TextBox runat="server" ID="txtDescription" Width="400" TabIndex="13" TextMode="MultiLine"
          Rows="5" />
      </td>
    </tr>
    <tr>
      <td class="label">
        Tags</td>
      <td>
        <asp:TextBox runat="server" ID="txtTags" Width="400" TabIndex="13" />
        <br />
        <span>
          <%=Resources.labels.separateTagsWitComma %>
        </span>
      </td>
    </tr>
    <tr>
      <td class="label">
        <%=Resources.labels.settings %>
      </td>
      <td>
        <asp:CheckBox runat="server" ID="cbIsPublished" Text="<%$ Resources:labels, publish %>"
          Checked="true" TabIndex="15" />
      </td>
    </tr>
    <tr>
      <td class="label">
      </td>
      <td>
        <br />
        <asp:Button runat="server" ID="btnAlbum" Text="<%$ Resources:labels, add %>" ValidationGroup="Album"
          TabIndex="11" />
      </td>
    </tr>
  </table>
</asp:Content>
